import request from '@/axios'

export const queryApi = (data) => {
    return request.post({url: '/sys/role/query', data: data})
}

export const saveApi = (data) => {
    return request.post({url: '/sys/role/save', data: data})
}

export const delApi = (ids) => {
    return request.post({url: '/sys/role/dels', data: ids})
}

export const functionTreeApi = () => {
    return request.get({url: '/sys/role/getFunctionTree'})
}
